package com.dddd.blog.api.post.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("bms_comment_relation")
@ApiModel(value = "CommentRelation对象", description = "")
@Data
public class CommentRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("父评论id")
    private Long parentId;

    @ApiModelProperty("子评论id")
    private Long childId;

    @ApiModelProperty("备注，其它")
    private String note;


    @Override
    public String toString() {
        return "CommentRelation{" +
            "id=" + id +
            ", parentId=" + parentId +
            ", childId=" + childId +
            ", note=" + note +
        "}";
    }
}
